Skip to content

Fix data converter ToPayload error management#2000

Merged
Quinn-With-Two-Ns merged 1 commit intotemporalio:masterfrom
cedricmoulard:issue-1999-fix
Jul 15, 2025
Merged

Fix data converter ToPayload error management#2000
Quinn-With-Two-Ns merged 1 commit intotemporalio:masterfrom
cedricmoulard:issue-1999-fix

Conversation

@cedricmoulard
Copy link
Copy Markdown
Contributor

What was changed

Returns error is codec encode method error in ToPayload

Why?

If codec failed to encode data, the error was silent and the non-encoded payload was return. An error management is missing because an error was expected in this case.

Checklist

  1. Closes DataConverter silent all encoding error #1999

  2. How was this tested: unit test

  1. Any docs updates needed? No

@cedricmoulard cedricmoulard requested a review from a team as a code owner July 13, 2025 19:34
@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Jul 13, 2025

CLA assistant check
All committers have signed the CLA.

@CLAassistant
Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


Cedric Moulard seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

@Quinn-With-Two-Ns
Copy link
Copy Markdown
Contributor

I think this LGTM, what do you think @yuandrew ?

Copy link
Copy Markdown
Contributor

@yuandrew yuandrew left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Quinn-With-Two-Ns Quinn-With-Two-Ns merged commit 1dc8b10 into temporalio:master Jul 15, 2025
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DataConverter silent all encoding error

4 participants